package com.ruoyi.web.controller.race;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.live.base.domain.LiveExamObjectiveScore;
import com.ruoyi.live.base.domain.LiveExamObjectiveScoreDetail;
import com.ruoyi.live.base.service.ILiveExamObjectiveScoreDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 比赛得分Controller
 * @author guoyou
 * @date 2023-08-25
 */
@RestController
@RequestMapping("/race/score")
public class LiveExamObjectiveScoreController extends BaseController {
    @Autowired
    private ILiveExamObjectiveScoreDetailService liveExamObjectiveScoreDetailService;
    @GetMapping("/list")
    public TableDataInfo list(LiveExamObjectiveScore liveExamObjectiveScore)
    {
        List<LiveExamObjectiveScoreDetail> list = liveExamObjectiveScoreDetailService.list(liveExamObjectiveScore);
        return getDataTable(list);
    }
}
